@import "index-1.scss";
.goods-num {
    width: $size;
    height: 58px;
    padding: 20px;
    strong {
        font-size: 500;
        color: #cc0000;
    }
}

$border-style: 1px solid #E8E8E8;
main {
    width: $size;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    .main-left {
        width: 210px;
        height: 600px;
        border: $border-style;
        h3 {
            height: 36px;
            border-bottom: $border-style;
            background-color: #f0f0f0;
            padding-left: 10px;
            font-size: 14px;
            line-height: 35px;
            text-indent: 5px;
        }
        div {
            height: 36px;
            line-height: 35px;
            text-indent: 20px;
            border-bottom: $border-style;
        }
        ul {
            border-bottom: $border-style;
        }
        ul li {
            height: 16px;
            padding-left: 42px;
            line-height: 16px;
            margin: 8px 0;
            color: #747474;
        }
    }
    .main-right {
        width: 970px;
        .sort {
            height: 37px;
            border: $border-style;
            background-color: #fafafa;
            input {
                &:hover {
                    background-color: #cc0000;
                    color: #fff;
                }
                cursor: pointer;
                border: none;
                border-right: $border-style;
                padding: 0 15px;
                width: 104px;
                height: 34px;
                margin: 0;
                background-color: #fafafa;
                color: #747474;
            }
            span {
                float: right;
                height: 35px;
                line-height: 35px;
                padding: 0 15px;
                strong {
                    margin: 0px 10px;
                }
            }
        }
    }
}

@mixin omit {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list {
    width: 970px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    .list-active {
        box-shadow: 0 2px 5px #ddd;
        border: 1px solid #E8E8E8;
    }
    li {
        width: 242px;
        height: 382px;
        padding: 5px;
        margin: 5px 0;
        border-bottom: 1px dotted #e8e8e8;
        &>a {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        img {
            width: 220px;
            height: 220px;
            vertical-align: top;
        }
        .title {
            width: 220px;
            height: 48px;
            color: #747474;
            line-height: 24px;
            word-break: break-all;
            &:hover {
                color: #cc0000;
            }
            @include omit()
        }
        &>a>span {
            width: 220px;
            height: 30px;
            line-height: 30px;
            color: #747474;
            &:hover {
                color: #cc0000;
            }
        }
        .price-wrap {
            width: 230px;
            height: 22px;
            line-height: 22px;
            .price {
                color: #cc0000;
                font-weight: 900;
                font-size: 16px;
            }
            i {
                display: inline-block;
                width: 27px;
                height: 14px;
                background: url(../img/TB1tVxBasic.png) -83px -132px;
            }
        }
        .sales {
            width: 220px;
            height: 19px;
            line-height: 19px;
            font-size: 14px;
            span {
                color: #cc0000;
            }
        }
        &>p {
            width: 230px;
            height: 30px;
            line-height: 30px;
            .add-card {
                float: right;
                margin-right: 5px;
                color: #cc0000;
            }
        }
    }
}

@import "index-3.scss";
footer {
    background-color: #fff;
}